package com.suyang.syt.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name = "ROLE_RESOURCES_PERMISSION")
public class RoleResourcesPermission implements Serializable {

	private long id;
	private long roleId;
	private long resourceId;
	private String permissionIds;
	private int isDelete;

	public RoleResourcesPermission() {
	}

	public RoleResourcesPermission(long roleId, long resourceId) {
		this.roleId = roleId;
		this.resourceId = resourceId;
	}

	public RoleResourcesPermission(long roleId, long resourceId, String permissionIds) {
		this.roleId = roleId;
		this.resourceId = resourceId;
		this.permissionIds = permissionIds;
	}

	@Id
	@GeneratedValue
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getRoleId() {
		return roleId;
	}

	public void setRoleId(long roleId) {
		this.roleId = roleId;
	}

	public long getResourceId() {
		return resourceId;
	}

	public void setResourceId(long resourceId) {
		this.resourceId = resourceId;
	}

	public String getPermissionIds() {
		return permissionIds;
	}

	public void setPermissionIds(String permissionIds) {
		this.permissionIds = permissionIds;
	}

	public int getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(int isDelete) {
		this.isDelete = isDelete;
	}

}
